Developer Documentation
PATH  WebObjects 4.0 Documentation > Serving WebObjects

Table of Contents Previous Section

Adaptor Modes

All WebObjects adaptors route incoming requests to WebObjects applications in one of two modes:

  1. Load-balancing between concurrent instances of the same application specified in the public configuration file (deployment)

  2. Choosing an application from the private configuration file (development)
The active adaptor tries to contact the requested application by going through the modes in the preceding order.

Load Balancing: When the client request tries to contact an application, the active WebObjects adaptor first checks the public configuration file for an application matching the specification in the URL. Load balancing typically occurs only for the first request of a session if the application stores state in the server. Afterwards, the application resolves the URL so that page navigation will always occur in the context of the same application. But if the application stores state on the page or in cookies, true load balancing will be performed for each request.

Private Configuration File: If the adaptor cannot find a public configuration file, it attempts to resolve the URL against entries in the private configuration file. If the adaptor finds a matching entry but cannot contact it or if the adaptor cannot find a matching entry, it returns a page listing the contents of the configuration file. For example, if an application has been stopped, the adaptor might still list its entry in the private configuration file.

Note that if the public configuration file NEXT_ROOT/Library/WebObjects/Configuration/WebObjects.conf exists, no applications listed in the private configuration file are ever contacted. Also note that adding applications to the Monitor as described in the section "Adding and Configuring an Application" creates the public configuration file. Thus, if you are using the Monitor application, autostarting is disabled.

Table of Contents Next Section